import sys
sys.path.append("detection")
from utils import *


class SVM:
    def __init__(self):
        self.model = ASSVM()
        self.model.load_model("./model/Haier/svc.joblib")

    def predect(self, path):
        return self.model.predict_wav_file(path)


if __name__ == "__main__":
    svm = SVM()
    print(svm.predect("./data/negative/0.wav"))
